home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Files / XTND 1.3.6 / Translator Examples / MacPaint Translator / MakeFile < prev   
Encoding:
Makefile  |  1991-05-01  |  1.7 KB  |  44 lines  |  [TEXT/MPS ]

  1. #################################################################################
  2. #    File:    MakeFile for the PICT translator                                    #
  3. #    Target:    MacPaint                                                            #
  4. #################################################################################
  5.  
  6. TranslatorName = MacPaint    ### Whatever you like, but try to be descriptive
  7.  
  8. Creator = 'Clrs'            ### This may be changed if you like (if you want to use a different icon, for instance
  9. Type = 'Fltr'                ### This must not be changed
  10.  
  11. ResType = 'PFLT'            ### This is for Picture import translators
  12. ResNum = 135                ### Your choice, but must match the number in the FTYP resource
  13.  
  14. Sources = MacPaintImport.c    ### For documentation only, not used by make
  15.  
  16. HeaderPath = :::XTND Headers:XTNDCIncludes:    ### Changed this if you reorganize the folder structure
  17.  
  18. Headers = "{HeaderPath}"XTNDInterface.h ∂
  19.           "{HeaderPath}"XTNDPictTranslator.h            ### Required headers for a Picture import translator
  20.  
  21.  
  22. ### Default Dependency/Build Rule
  23.  
  24. .c.o ƒ .c {Headers}
  25.     C {Default}.c {COptions} -r -d MPW -d MPWC
  26.  
  27.  
  28. ### This copies the resources from MacPaintImport.π.rsrc into the translator file. It
  29. ### deletes the old resource fork before adding the new resources.  This must be the
  30. ### first dependency for the target file, since it deletes all existing resources.
  31.  
  32. {TranslatorName} ƒƒ MacPaintImport.r MacPaintImport.π.rsrc MakeFile
  33.     Rez MacPaintImport.r -t {Type} -c {Creator} ∂
  34.         -o {TranslatorName}
  35.  
  36.  
  37. ### This puts the code into the resource type and number specified above in the translator file
  38.  
  39. {TranslatorName} ƒƒ MacPaintImport.c.o MakeFile
  40.     Link -rt {ResType}={ResNum} -m main -sn Main="MacPaint - IN" ∂
  41.         MacPaintImport.c.o ∂
  42.         "{Libraries}"Interface.o ∂
  43.         -o {TranslatorName}
  44.